package com.hundsun.documentripper.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hundsun.documentripper.domain.pojo.FileHistory;
import org.apache.ibatis.annotations.Select;

/**
 * Note：
 *
 * @author ：mengjw
 * @description：历史文件Mapper
 * @date ：Created in 2021/1/26
 */
public interface FileHistoryMapper extends BaseMapper<FileHistory> {

    @Select("insert into file_history " +
            "select * from file where uuid = #{fileUuid} ")
    void insertFromFile(String fileUuid);

}